package com.mer.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @program: IIPhase-project
 * @description: 教师实体类
 * @author: 张庆恒
 * @create: 2021-10-19 11:20
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("edu_teacher")
@ApiModel(value = "EduTeacher对象", description = "讲师")
public class Teacher implements Serializable {

    @ApiModelProperty(value = "讲师ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "讲师姓名")
    private String name;

    @ApiModelProperty(value = "讲师简介")
    private String intro;

    @ApiModelProperty(value = "讲师资历,一句话说明讲师")
    private String career;

    @ApiModelProperty(value = "头衔 0高级讲师 1首席讲师")
    private Integer level;

    @ApiModelProperty(value = "讲师头像")
    private String avatar;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private String gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private String gmtModified;

    @ApiModelProperty(value = "讲师手机")
    private String mobile;

    @ApiModelProperty(value = "讲师邮箱")
    private String email;

    @ApiModelProperty(value = "讲师状态，0 正常，1 禁用")
    private String status;
}
